home *** CD-ROM | disk | FTP | other *** search
/ Aminet 40 / Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso / Aminet / dev / lang / Python16_Src.lha / Python16_Source / Include / parsetok.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-03  |  501 b   |  25 lines

  1. #ifndef Py_PARSETOK_H
  2. #define Py_PARSETOK_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7. /* Parser-tokenizer link interface */
  8.  
  9. typedef struct {
  10.     int error;
  11.     char *filename;
  12.     int lineno;
  13.     int offset;
  14.     char *text;
  15. } perrdetail;
  16.  
  17. extern DL_IMPORT(node *) PyParser_ParseString Py_PROTO((char *, grammar *, int, perrdetail *));
  18. extern DL_IMPORT(node *) PyParser_ParseFile Py_PROTO((FILE *, char *, grammar *, int,
  19.                 char *, char *, perrdetail *));
  20.  
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif /* !Py_PARSETOK_H */
  25.